package com.patentbackend.patentmanage.service;

import com.patentbackend.patentmanage.dto.SliderDTO;
import com.patentbackend.patentmanage.entity.Slider;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Optional;

public interface SliderService {
    Slider create(SliderDTO sliderDTO);
    Slider update(Long id, SliderDTO sliderDTO);
    boolean existsById(Long id);
    List<Slider> findAll();
    List<Slider> findByEnabledOrderBySortOrderAsc(boolean enabled);
    Optional<Slider> findById(Long id);
    void delete(Long id);
    String uploadImage(Long sliderId, MultipartFile image) throws IOException;
}